package com.design.pattern.singleton.register;/** * create by yufeng on 2021/7/3 22:30 */public enum EnumSingleton {    INSTANCE;    private Object data;    public Object getData() {        return data;    }    public void setData(Object data) {        this.data = data;    }    public static EnumSingleton getInstance(){return INSTANCE;}}